package com.bdk.middle.goods.api.client;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.goods.api.domain.GoodsCategoryDO;
import com.bdk.middle.goods.api.query.GoodsCategoryQueryDO;
import org.springframework.web.bind.annotation.*;

public interface GoodsCategoryClientApi {

    /**
     * 添加商品类目
     * @param domain 商品类目DO
     * @return ResultDO
     */
    @RequestMapping(value="/goods_category_cliet_api/add.html", method = RequestMethod.POST)
    public @ResponseBody
    ResultDO add(@RequestBody GoodsCategoryDO domain);

    /**
     * 修改商品类目信息
     * @param domain 商品类目DO
     * @return ResultDO
     */
    @RequestMapping(value="/goods_category_cliet_api/edit.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO edit(@RequestBody GoodsCategoryDO domain);

    /**
     * 获取商品类目详情
     * @param id 商品类目ID
     * @return ResultDO
     */
    @RequestMapping(value="/goods_category_cliet_api/get.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO get(@RequestParam("id") String id);

    /**
     * 删除商品类目
     * @param id 商品类目ID
     * @param modifier 修改人商品类目名
     * @return ResultDO
     */
    @RequestMapping(value="/goods_category_cliet_api/remove.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO remove(@RequestParam("id") String id, @RequestParam("modifier") String modifier);

    /**
     * 查找商品类目列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    @RequestMapping(value="/goods_category_cliet_api/find.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO find(@RequestBody GoodsCategoryQueryDO domain);
}
